//
//  UIView+Expand.h
//  GoodEit
//
//  Created by ihope99 on 2017/8/3.
//  Copyright © 2017年 GZX. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (ZXExpand)
typedef void (^TouchBlock)(void);
///绑定点击手势
-(void)addTapTouch:(TouchBlock)block;

@property (nonatomic,readonly)CGFloat CG_Height;
@property (nonatomic,readonly)CGFloat CG_Width;
@property (nonatomic,readonly)CGFloat CG_MaxY;
@property (nonatomic,readonly)CGFloat CG_MaxX;
@property (nonatomic,readonly)CGFloat CG_MinX;
@property (nonatomic,readonly)CGFloat CG_MinY;
@property (nonatomic,readonly)CGFloat CG_CenterY;
@property (nonatomic,readonly)CGFloat CG_CenterX;
///初始化UITextField
+(UITextField *)initWithTextFieldFrame:(CGRect)frame
                                  Text:(NSString *)text
                           placeholder:(NSString *)placeholder
                                  font:(float)font
                          keyboardType:(UIKeyboardType)keyboardType
                             textColor:(UIColor *)textColor
                         textAlignment:(NSTextAlignment)textAlignment
                              delegate:(id)delegate;
///初始化UILabel
+(UILabel *)initWithLabelFrame:(CGRect)frame
                          Text:(NSString *)text
                          font:(float)font
                     textColor:(UIColor *)textColor
                 textAlignment:(NSTextAlignment)textAlignment;
///初始化UIButton
+(UIButton *)initWithButtonFrame:(CGRect)frame
                     normalTitle:(NSString *)normalTitle
                normalTitleColor:(UIColor *)normalTitleColor
                   selectedTitle:(NSString *)selectedTitle
              selectedTitleColor:(UIColor *)selectedTitleColor
                            font:(float)font;
///移除所有的子控件
-(void)removeAllSubViews;
///控件切圆角
-(void)toRoundWithFloat:(float)height;
@end
